var mboxCopyright = "Copyright 1996-2014. Adobe Systeyems Incorporated. All rights reserved.";var TNT = TNT || {};TNT.a = TNT.a || {};TNT.a.nestedMboxes = [];TNT.a.b = { "companyName": "Test&Target", "isProduction": true, "adminUrl": "//admin9.testandtarget.omniture.com/admin", "clientCode": "adobe", "serverHost": "adobe.tt.omtrdc.net", "mboxTimeout": 15000, "mboxLoadedTimeout": 16, "mboxFactoryDisabledTimeout": 60 * 60, "bodyPollingTimeout": 16, "sessionExpirationTimeout": 31 * 60, "experienceManagerDisabledTimeout": 30 * 60, "experienceManagerTimeout": 5000, "tntIdLifetime": 3024000, "crossDomain": "enabled", "trafficDuration": 10368000, "trafficLevelPercentage": 100, "clientSessionIdSupport": true, "clientTntIdSupport": true, "passPageParameters": true, "usePersistentCookies": true, "crossDomainEnabled": true, "crossDomainXOnly": false, "imsOrgId": "9E1005A551ED61CA0A490D45@AdobeOrg", "includeExperienceManagerPlugin": true, "globalMboxName": "adobe-global-mbox", "globalMboxLocationDomId": "", "globalMboxAutoCreate": true, "experienceManagerPluginUrl": "//cdn.tt.omtrdc.net/cdn/target.js", "siteCatalystPluginName": "tt", "includeSiteCatalystPlugin": true, "mboxVersion": 57, "mboxIsSupportedFunction": function() { return true; }, "parametersFunction": function() { return ""; }, "cookieDomainFunction": function() { return mboxCookiePageDomain(); }};TNT.a.c = {};TNT.a.c.d = "mboxPage";TNT.a.c.e = "mboxMCGVID";TNT.a.c.f = "mboxMCGLH";TNT.a.c.g = "mboxAAMB";TNT.a.c.h = "mboxMCAVID";TNT.a.c.i = "mboxMCSDID";TNT.a.c.j = "mboxCount";TNT.a.c.k = "mboxHost";TNT.a.c.l = "mboxFactoryId";TNT.a.c.m = "mboxPC";TNT.a.c.n = "screenHeight";TNT.a.c.o = "screenWidth";TNT.a.c.p = "browserWidth";TNT.a.c.q = "browserHeight";TNT.a.c.r = "browserTimeOffset";TNT.a.c.s = "colorDepth";TNT.a.c.t = "mboxXDomain";TNT.a.c.u = "mboxURL";TNT.a.c.v = "mboxReferrer";TNT.a.c.w = "mboxVersion";TNT.a.c.x = "mbox";TNT.a.c.y = "mboxId";TNT.a.c.z = "mboxDOMLoaded";TNT.a.c.A = "mboxTime";TNT.a.c.B = "scPluginVersion";TNT.a.C = {};TNT.a.C.D = "mboxDisable";TNT.a.C.E = "mboxSession";TNT.a.C.F = "mboxEnv";TNT.a.C.G = "mboxDebug";TNT.a.H = {};TNT.a.H.D = "disable";TNT.a.H.E = "session";TNT.a.H.m = "PC";TNT.a.H.I = "level";TNT.a.H.J = "check";TNT.a.H.G = "debug";TNT.a.H.K = "em-disabled";TNT.a.L = {};TNT.a.L.M = "default";TNT.a.L.N = "mbox";TNT.a.L.O = "mboxImported-";TNT.a.L.P = 60000;TNT.a.L.Q = "mboxDefault";TNT.a.L.R = "mboxMarker-";TNT.a.L.S = 250;TNT.a.L.B = 1;TNT.getGlobalMboxName = function () { return TNT.a.b.globalMboxName;};TNT.getGlobalMboxLocation = function () { return TNT.a.b.globalMboxLocationDomId;};TNT.isAutoCreateGlobalMbox = function () { return TNT.a.b.globalMboxAutoCreate;};TNT.getClientMboxExtraParameters = function () { return TNT.a.b.parametersFunction();};TNT.a.T = {};TNT.a.T.U = function(V) { return V === void(0);};TNT.a.T.W = function(V) { return V === null;};TNT.a.T.X = function(V) { var T = TNT.a.T; if (T.U(V) || T.W(V)) { return true; } return V.length === 0;};TNT.a.T.Y = function(V) { var Z = {}.toString; return Z.call(V) === '[object Function]';};TNT.a.T._ = function(V) { var Z = {}.toString; return Z.call(V) === '[object Array]';};TNT.a.T.ab = function(V) { var Z = {}.toString; return Z.call(V) === '[object String]';};TNT.a.T.bb = function(V) { var Z = {}.toString; return Z.call(V) === '[object Object]';};TNT.getTargetPageParameters = function () { var T = TNT.a.T; var cb = window.targetPageParams; if (!T.Y(cb)) { return []; } var db = null; try { db = cb(); } catch (eb) {} if (T.W(db)) { return []; } if (T._(db)) { return db; } if (T.ab(db) && !T.X(db)) { return TNT.a.fb(db); } if (T.bb(db)) { return TNT.a.gb(db, []); } return [];};TNT.a.fb = function(hb) { var db = []; var ib = /([^&=]+)=([^&]*)/g; var jb = decodeURIComponent; var kb = ib.exec(hb); while (kb) { db.push([jb(kb[1]), jb(kb[2])].join('=')); kb = ib.exec(hb); } return db;};TNT.a.gb = function (lb, mb) { var T = TNT.a.T; var db = []; for (var nb in lb) { if (!lb.hasOwnProperty(nb)) { continue; } var V = lb[nb]; if (T.bb(V)) { mb.push(nb); db = db.concat(TNT.a.gb(V, mb)); mb.pop(); } else { if (mb.length > 0) { db.push([mb.concat(nb).join('.'), V].join('=')); } else { db.push([nb, V].join('=')); } } } return db;};TNT.a.ob = function() { };TNT.a.ob.prototype.getType = function() { return 'ajax';};TNT.a.ob.prototype.fetch = function(pb) { pb.setServerType(this.getType()); document.write('<' + 'scr' + 'ipt src="' + pb.buildUrl() +'"><' + '\/scr' + 'ipt>');};TNT.a.ob.prototype.cancel = function() { };mboxUrlBuilder = function(qb, rb) { this.qb = qb; this.rb = rb; this.sb = []; this.tb = function(u) { return u; }; this.ub = null;};mboxUrlBuilder.prototype.addNewParameter = function (vb, V) { this.sb.push({name: vb, value: V}); return this;};mboxUrlBuilder.prototype.addParameterIfAbsent = function (vb, V) { if (V) { for (var wb = 0; wb < this.sb.length; wb++) { var xb = this.sb[wb]; if (xb.name === vb) { return this; } } this.checkInvalidCharacters(vb); return this.addNewParameter(vb, V); }};mboxUrlBuilder.prototype.addParameter = function(vb, V) { this.checkInvalidCharacters(vb); for (var wb = 0; wb < this.sb.length; wb++) { var xb = this.sb[wb]; if (xb.name === vb) { xb.value = V; return this; } } return this.addNewParameter(vb, V);};mboxUrlBuilder.prototype.addParameters = function(sb) { if (!sb) { return this; } for (var wb = 0; wb < sb.length; wb++) { var yb = sb[wb].indexOf('='); if (yb === -1 || yb === 0) { continue; } this.addParameter(sb[wb].substring(0, yb), sb[wb].substring(yb + 1, sb[wb].length)); } return this;};mboxUrlBuilder.prototype.setServerType = function(zb) { this.Ab = zb;};mboxUrlBuilder.prototype.setBasePath = function(ub) { this.ub = ub;};mboxUrlBuilder.prototype.setUrlProcessAction = function(Bb) { this.tb = Bb;};mboxUrlBuilder.prototype.buildUrl = function() { var Cb = this.ub ? this.ub : '/m2/' + this.rb + '/mbox/' + this.Ab; var Db = document.location.protocol == 'file:' ? 'http:' : document.location.protocol; var u = Db + "//" + this.qb + Cb; var Eb = u.indexOf('?') != -1 ? '&' : '?'; for (var wb = 0; wb < this.sb.length; wb++) { var xb = this.sb[wb]; u += Eb + encodeURIComponent(xb.name) + '=' + encodeURIComponent(xb.value); Eb = '&'; } return this.Fb(this.tb(u));};mboxUrlBuilder.prototype.getParameters = function() { return this.sb;};mboxUrlBuilder.prototype.setParameters = function(sb) { this.sb = sb;};mboxUrlBuilder.prototype.clone = function() { var Gb = new mboxUrlBuilder(this.qb, this.rb); Gb.setServerType(this.Ab); Gb.setBasePath(this.ub); Gb.setUrlProcessAction(this.tb); for (var wb = 0; wb < this.sb.length; wb++) { Gb.addParameter(this.sb[wb].name, this.sb[wb].value); } return Gb;};mboxUrlBuilder.prototype.Fb = function(Hb) { return Hb.replace(/\"/g, '"').replace(/>/g, '>');}; mboxUrlBuilder.prototype.checkInvalidCharacters = function (vb) { var Ib = new RegExp('(\'|")'); if (Ib.exec(vb)) { throw "Parameter '" + vb + "' contains invalid characters"; } };mboxStandardFetcher = function() { };mboxStandardFetcher.prototype.getType = function() { return 'standard';};mboxStandardFetcher.prototype.fetch = function(pb) { pb.setServerType(this.getType()); document.write('<' + 'scr' + 'ipt src="' + pb.buildUrl() + '"><' + '\/scr' + 'ipt>');};mboxStandardFetcher.prototype.cancel = function() { };mboxAjaxFetcher = function() { };mboxAjaxFetcher.prototype.getType = function() { return 'ajax';};mboxAjaxFetcher.prototype.fetch = function(pb) { pb.setServerType(this.getType()); var u = pb.buildUrl(); this.Jb = document.createElement('script'); this.Jb.src = u; document.body.appendChild(this.Jb);};mboxAjaxFetcher.prototype.cancel = function() { };mboxMap = function() { this.Kb = {}; this.mb = [];};mboxMap.prototype.put = function(nb, V) { if (!this.Kb[nb]) { this.mb[this.mb.length] = nb; } this.Kb[nb] = V;};mboxMap.prototype.get = function(nb) { return this.Kb[nb];};mboxMap.prototype.remove = function(nb) { this.Kb[nb] = undefined; var Lb = []; for (var i = 0; i < this.mb.length; i++) { if (this.mb[i] !== nb) { Lb.push(this.mb[i]); } } this.mb = Lb;};mboxMap.prototype.each = function(Bb) { for (var wb = 0; wb < this.mb.length; wb++ ) { var nb = this.mb[wb]; var V = this.Kb[nb]; if (V) { var db = Bb(nb, V); if (db === false) { break; } } }};mboxMap.prototype.isEmpty = function() { return this.mb.length === 0;};mboxFactory = function(Mb, rb, Nb) { var b = TNT.a.b; var H = TNT.a.H; var C = TNT.a.C; var L = TNT.a.L; var Ob = b.mboxVersion; this.Pb = false; this.Nb = Nb; this.Qb = new mboxList(); mboxFactories.put(Nb, this); this.Rb = b.mboxIsSupportedFunction() && typeof (window.attachEvent || document.addEventListener || window.addEventListener) != 'undefined'; this.Sb = this.Rb && mboxGetPageParameter(C.D, true) === null; var Tb = Nb == L.M; var Ub = L.N + (Tb ? '' : ('-' + Nb)); this.Vb = new mboxCookieManager(Ub, b.cookieDomainFunction()); if (b.crossDomainXOnly) { this.Sb = this.Sb && this.Vb.isEnabled(); } this.Sb = this.Sb && TNT.a.T.W(this.Vb.getCookie(H.D)) && TNT.a.T.W(this.Vb.getCookie(H.K)); if (this.isAdmin()) { this.enable(); } this.Wb(); this.Xb = mboxGenerateId(); this.Yb = mboxScreenHeight(); this.Zb = mboxScreenWidth(); this._b = mboxBrowserWidth(); this.ac = mboxBrowserHeight(); this.bc = mboxScreenColorDepth(); this.cc = mboxBrowserTimeOffset(); this.dc = new mboxSession(this.Xb, C.E, H.E, b.sessionExpirationTimeout, this.Vb); this.ec = new mboxPC(H.m, b.tntIdLifetime, this.Vb); this.pb = new mboxUrlBuilder(Mb, rb); this.fc(this.pb, Tb, Ob); this.gc = new Date().getTime(); this.hc = this.gc; var ic = this; this.addOnLoad(function() { ic.hc = new Date().getTime(); }); if (this.Rb) { this.addOnLoad(function() { ic.Pb = true; ic.getMboxes().each(function(jc) { jc.kc(); jc.setFetcher(new mboxAjaxFetcher()); jc.finalize(); }); TNT.a.nestedMboxes = []; }); if (this.Sb) { this.limitTraffic(b.trafficLevelPercentage, b.trafficDuration); this.lc(); this.mc = new mboxSignaler(this); } else { if (!b.isProduction) { if (this.isAdmin()) { if (!this.isEnabled()) { alert("mbox disabled, probably due to timeout\n" + "Reset your cookies to re-enable\n(this message will only appear in administrative mode)"); } else { alert("It looks like your browser will not allow " + b.companyName + " to set its administrative cookie. To allow setting the" + " cookie please lower the privacy settings of your browser.\n" + "(this message will only appear in administrative mode)"); } } } } }};mboxFactory.prototype.forcePCId = function(nc) { if (!TNT.a.b.clientTntIdSupport) { return; } if (this.ec.forceId(nc)) { this.dc.forceId(mboxGenerateId()); }};mboxFactory.prototype.forceSessionId = function(nc) { if (!TNT.a.b.clientSessionIdSupport) { return; } this.dc.forceId(nc);};mboxFactory.prototype.isEnabled = function() { return this.Sb;};mboxFactory.prototype.getDisableReason = function() { return this.Vb.getCookie(TNT.a.H.D);};mboxFactory.prototype.isSupported = function() { return this.Rb;};mboxFactory.prototype.disable = function(oc, pc) { if (typeof oc == 'undefined') { oc = 60 * 60; } if (typeof pc == 'undefined') { pc = 'unspecified'; } if (!this.isAdmin()) { this.Sb = false; this.Vb.setCookie(TNT.a.H.D, pc, oc); }};mboxFactory.prototype.enable = function() { this.Sb = true; this.Vb.deleteCookie(TNT.a.H.D);};mboxFactory.prototype.isAdmin = function() { return document.location.href.indexOf(TNT.a.C.F) != -1;};mboxFactory.prototype.limitTraffic = function(qc, oc) { if (TNT.a.b.trafficLevelPercentage != 100) { if (qc == 100) { return; } var rc = true; if (parseInt(this.Vb.getCookie(TNT.a.H.I)) != qc) { rc = (Math.random() * 100) <= qc; } this.Vb.setCookie(TNT.a.H.I, qc, oc); if (!rc) { this.disable(60 * 60, 'limited by traffic'); } }};mboxFactory.prototype.addOnLoad = function(sc) { if (this.isDomLoaded()) { sc(); } else { var tc = false; var uc = function() { if (tc) { return; } tc = true; sc(); }; this.vc.push(uc); if (this.isDomLoaded() && !tc) { uc(); } }};mboxFactory.prototype.getEllapsedTime = function() { return this.hc - this.gc;};mboxFactory.prototype.getEllapsedTimeUntil = function(A) { return A - this.gc;};mboxFactory.prototype.getMboxes = function() { return this.Qb;};mboxFactory.prototype.get = function(x, y) { return this.Qb.get(x).getById(y || 0);};mboxFactory.prototype.update = function(x, sb) { if (!this.isEnabled()) { return; } var ic = this; if (!this.isDomLoaded()) { this.addOnLoad(function() { ic.update(x, sb); }); return; } if (this.Qb.get(x).length() === 0) { throw "Mbox " + x + " is not defined"; } this.Qb.get(x).each(function(jc) { var pb = jc.getUrlBuilder(); pb.addParameter(TNT.a.c.d, mboxGenerateId()); ic.wc(pb); ic.xc(pb, x); ic.setVisitorIdParameters(pb, x); jc.load(sb); });};mboxFactory.prototype.setVisitorIdParameters = function(u, x) { if (typeof Visitor == 'undefined' || !TNT.a.b.imsOrgId) { return; } var visitor = Visitor.getInstance(TNT.a.b.imsOrgId); if (visitor.isAllowed()) { var addVisitorValueToUrl = function(param, getter, mboxName) { if (visitor[getter]) { var callback = function(value) { if (value) { u.addParameter(param, value); } }; var value; if (typeof mboxName != 'undefined') { value = visitor[getter]("mbox:" + mboxName); } else { value = visitor[getter](callback); } callback(value); } }; addVisitorValueToUrl(TNT.a.c.e, "getMarketingCloudVisitorID"); addVisitorValueToUrl(TNT.a.c.f, "getAudienceManagerLocationHint"); addVisitorValueToUrl(TNT.a.c.g, "getAudienceManagerBlob"); addVisitorValueToUrl(TNT.a.c.h, "getAnalyticsVisitorID"); addVisitorValueToUrl(TNT.a.c.i, "getSupplementalDataID", x); }};mboxFactory.prototype.create = function(x, sb, yc) { if (!this.isSupported()) { return null; } var zc = new Date(); var A = zc.getTime() - (zc.getTimezoneOffset() * TNT.a.L.P); var pb = this.pb.clone(); pb.addParameter(TNT.a.c.j, this.Qb.length() + 1); pb.addParameter(TNT.a.c.A, A); pb.addParameters(sb); this.wc(pb); this.xc(pb, x); this.setVisitorIdParameters(pb, x); var y, Ac, jc; if (yc) { Ac = new mboxLocatorNode(yc); } else { if (this.Pb) { throw 'The page has already been loaded, can\'t write marker'; } Ac = new mboxLocatorDefault(this.Bc(x)); } try { y = this.Qb.get(x).length(); jc = new mbox(x, y, pb, Ac, this.Cc(x), this); if (this.Sb) { jc.setFetcher(this.Pb ? new mboxAjaxFetcher() : new mboxStandardFetcher()); } var ic = this; jc.setOnError(function(Dc, zb) { jc.setMessage(Dc); jc.activate(); if (!jc.isActivated()) { ic.disable(TNT.a.b.mboxFactoryDisabledTimeout, Dc); window.location.reload(false); } }); this.Qb.add(jc); } catch (Ec) { this.disable(); throw 'Failed creating mbox "' + x + '", the error was: ' + Ec; } return jc;};mboxFactory.prototype.wc = function(pb) { var m = this.ec.getId(); if (m) { pb.addParameter(TNT.a.c.m, m); }};mboxFactory.prototype.xc = function(pb, x) { var Fc = !TNT.isAutoCreateGlobalMbox() && TNT.getGlobalMboxName() === x; if (Fc) { pb.addParameters(TNT.getTargetPageParameters()); }};mboxFactory.prototype.getCookieManager = function() { return this.Vb;};mboxFactory.prototype.getPageId = function() { return this.Xb;};mboxFactory.prototype.getPCId = function() { return this.ec;};mboxFactory.prototype.getSessionId = function() { return this.dc;};mboxFactory.prototype.getSignaler = function() { return this.mc;};mboxFactory.prototype.getUrlBuilder = function() { return this.pb;};mboxFactory.prototype.Gc = function(x) { return this.Nb + '-' + x + '-' + this.Qb.get(x).length();};mboxFactory.prototype.Bc = function(x) { return TNT.a.L.R + this.Gc(x);};mboxFactory.prototype.Cc = function(x) { return TNT.a.L.O + this.Gc(x);};mboxFactory.prototype.fc = function(pb, Tb, Ob) { pb.addParameter(TNT.a.c.k, document.location.hostname); pb.addParameter(TNT.a.c.d, this.Xb); pb.addParameter(TNT.a.c.n, this.Yb); pb.addParameter(TNT.a.c.o, this.Zb); pb.addParameter(TNT.a.c.p, this._b); pb.addParameter(TNT.a.c.q, this.ac); pb.addParameter(TNT.a.c.r, this.cc); pb.addParameter(TNT.a.c.s, this.bc); pb.addParameter(TNT.a.C.E, this.dc.getId()); if (!Tb) { pb.addParameter(TNT.a.c.l, this.Nb); } this.wc(pb); if (TNT.a.b.crossDomainEnabled) { pb.addParameter(TNT.a.c.t, TNT.a.b.crossDomain); } var c = TNT.getClientMboxExtraParameters(); if (c) { pb.addParameters(c.split('&')); } pb.setUrlProcessAction(function(u) { if (TNT.a.b.passPageParameters) { u += '&'; u += TNT.a.c.u; u += '=' + encodeURIComponent(document.location); var v = encodeURIComponent(document.referrer); if (u.length + v.length < 2000) { u += '&'; u += TNT.a.c.v; u += '=' + v; } } u += '&'; u += TNT.a.c.w; u += '=' + Ob; return u; });};mboxFactory.prototype.lc = function() { document.write('');};mboxFactory.prototype.isDomLoaded = function() { return this.Pb;};mboxFactory.prototype.Wb = function() { if (this.vc) { return; } this.vc = []; var ic = this; (function() { var Hc = document.addEventListener ? "DOMContentLoaded" : "onreadystatechange"; var Ic = false; var Jc = function() { if (Ic) { return; } Ic = true; for (var i = 0; i < ic.vc.length; ++i) { ic.vc[i](); } }; if (document.addEventListener) { document.addEventListener(Hc, function() { document.removeEventListener(Hc, arguments.callee, false); Jc(); }, false); window.addEventListener("load", function(){ document.removeEventListener("load", arguments.callee, false); Jc(); }, false); } else if (document.attachEvent) { if (self !== self.top) { document.attachEvent(Hc, function() { if (document.readyState === 'complete') { document.detachEvent(Hc, arguments.callee); Jc(); } }); } else { var Kc = function() { try { document.documentElement.doScroll('left'); Jc(); } catch (Lc) { setTimeout(Kc, 13); } }; Kc(); } } if (document.readyState === "complete") { Jc(); } })();};mboxSignaler = function(Mc) { this.Nc = document; this.Mc = Mc;};mboxSignaler.prototype.signal = function(Oc, x ) { if (!this.Mc.isEnabled()) { return; } var Pc = this.Qc(this.Mc.Bc(x)); this.Rc(this.Nc.body, Pc); var jc = this.Mc.create(x, mboxShiftArray(arguments), Pc); var pb = jc.getUrlBuilder(); pb.addParameter(TNT.a.c.d, mboxGenerateId()); jc.load();};mboxSignaler.prototype.Qc = function(Sc) { var db = this.Nc.createElement('DIV'); db.id = Sc; db.style.visibility = 'hidden'; db.style.display = 'none'; return db;};mboxSignaler.prototype.Rc = function(Tc, Uc) { Tc.appendChild(Uc);};mboxList = function() { this.Qb = [];};mboxList.prototype.add = function(jc) { var T = TNT.a.T; if (T.U(jc) || T.W(jc)) { return; } this.Qb[this.Qb.length] = jc;};mboxList.prototype.get = function(x) { var db = new mboxList(); for (var wb = 0; wb < this.Qb.length; wb++) { var jc = this.Qb[wb]; if (jc.getName() == x) { db.add(jc); } } return db;};mboxList.prototype.getById = function(Vc) { return this.Qb[Vc];};mboxList.prototype.length = function() { return this.Qb.length;};mboxList.prototype.each = function(Bb) { if (typeof Bb !== 'function') { throw 'Action must be a function, was: ' + typeof(Bb); } for (var wb = 0; wb < this.Qb.length; wb++) { Bb(this.Qb[wb]); }};mboxLocatorDefault = function(Wc) { this.Wc = Wc; document.write('